package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SetmealDao {
    void add(Setmeal setmeal);

    void setSetmealAndCheckGroup(Map<String, Integer> map);

    Page<Setmeal> findByCondition(String queryString);

    Setmeal findById(int id);

    List<Integer> findCheckgroupIdsBySetmealId(Integer setmealId);

    void edit(Setmeal setmeal);

    void deleteAssoication(Integer id);

    void deleteById(Integer id);

    List<Setmeal> findAll();

    List<Map<String, Object>> findSetmealCount();

    Setmeal findSetmealNameDaoByOrderId(Integer integer);

    public   Integer findnameById(String name);

    public Integer findSetmealMoney(Integer id);

    public Integer findSetmealNum(@Param("id") Integer id, @Param("date") String date);

    public List<String> findSetmealNameCount();

    public List<String> findByBirthdays();
}
